package com.itheima.demo5;

public class Consume implements Runnable{
    private Warehouse store;

    public Consume(Warehouse store) {
        this.store = store;
    }

    @Override
    public void run() {
        // 取货，有就取
        while (true) {
            store.get();
        }
    }
}
